package com.yanqu.road.entity.log.admin;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

/**
 * @Author : Cxp
 * @Time : 2025-02-25
 * @Description : 后台封禁日志
 */

@FieldTypeAnnotation(tableName = "t_l_admin_ban", desc = "后台封禁日志", autoSave = true, uploadCk = true)
public class LogAdminBan extends ServerBaseLog {
    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "封禁类型")
    private String banType;

    @FieldTypeAnnotation(desc = "封禁开始时间")
    private long startTime;

    @FieldTypeAnnotation(desc = "封禁结束时间")
    private long endTime;

    @FieldTypeAnnotation(desc = "是否封禁 0-解封 1-封禁")
    private int ban;

    @FieldTypeAnnotation(desc = "是否屏蔽发言 0-否 1-是")
    private int shieldChat;

    public LogAdminBan(long userId, String banType, long startTime, long endTime, int ban, int shieldChat) {
        this.userId = userId;
        this.banType = banType;
        this.startTime = startTime;
        this.endTime = endTime;
        this.ban = ban;
        this.shieldChat = shieldChat;
    }

    @Override
    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getBanType() {
        return banType;
    }

    public void setBanType(String banType) {
        this.banType = banType;
    }

    public long getStartTime() {
        return startTime;
    }

    public void setStartTime(long startTime) {
        this.startTime = startTime;
    }

    public long getEndTime() {
        return endTime;
    }

    public void setEndTime(long endTime) {
        this.endTime = endTime;
    }

    public int getBan() {
        return ban;
    }

    public void setBan(int ban) {
        this.ban = ban;
    }

    public int getShieldChat() {
        return shieldChat;
    }

    public void setShieldChat(int shieldChat) {
        this.shieldChat = shieldChat;
    }
}
